﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MShop.Core.Domain
{
    [MetadataType(typeof(CurrenyUnit_Validation))]
    public partial class CurrenyUnit
    {

    }


    public partial class CurrenyUnit_Validation
    {
        [DisplayName("货币名称")]
        [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "货币名称不能为空")]
        public string Name { get; set; }
        [DisplayName("货币代码")]
        [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "货币代码不能为空")]
        public string Code { get; set; }
        [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "货币符号不能为空")]
        [DisplayName("货币符号")]
        public string Symbol { get; set; }
        [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "货币汇率不能为空")]
        [Range(0.0001d, 10000000.0000d, ErrorMessage = "货币汇率输入有误")]
        [DisplayName("货币汇率")]
        public decimal Rate { get; set; }
    }
}